package com.zsoa.common.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.transaction.annotation.Transactional;

import com.zsoa.common.dao.UserDao;
import com.zsoa.common.entity.User;

@Component
@Transactional(readOnly = true)
public class UserManager {

	private UserDao userDao;
	
	public User findUserByLoginNameAndPassword(String loginName,String password)
	{
		return this.userDao.findByLoginNameAndPassword(loginName, password);
	}
	@Autowired
	public void setUserDao(UserDao userDao) {
		this.userDao = userDao;
	}
	
	
}
